home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / misc / MPackMUI.lha / MPackMUI / Source / GUI.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  3.8 KB  |  88 lines

  1. // --------------------------------------------------------------------------------------------------------------
  2. //
  3. //   MPackMUI V1.01 GUI Header
  4. //
  5. // --------------------------------------------------------------------------------------------------------------
  6.  
  7. #include <exec/types.h>
  8. #include <intuition/classusr.h>
  9. #include <libraries/gadtools.h>
  10. #include <libraries/mui.h>
  11.  
  12. #include <clib/alib_protos.h>
  13. #include <proto/muimaster.h>
  14.  
  15. #include "Enum.h"
  16.  
  17. // --------------------------------------------------------------------------------------------------------------
  18.  
  19. // Internal Prototypes
  20.  
  21. void CreateGUI();
  22.  
  23. // External Prototypes
  24.  
  25. void CleanUp();
  26. void DoEasyReq(char *);
  27.  
  28. // Defines
  29.  
  30. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  31.  
  32. // GUI stuff
  33.  
  34. extern Object *App;
  35. extern Object *Windows[];
  36. extern Object *Gadgets[];
  37. extern APTR Menus[];
  38.  
  39. const char *Labels[] = { "Encode", "Decode", "Email", "NG", NULL };
  40.  
  41. const char *PrefsCycleLabels[] = {
  42.     "application/",
  43.     "audio/",
  44.     "image/",
  45.     "video/",
  46.     NULL
  47. };
  48.  
  49. extern const char *DefaultMIMETypes[];
  50. extern char *MIMETypes[];
  51.  
  52. struct NewMenu MenuData[] = {
  53.     { NM_TITLE, "Project",                      0,   0, 0,      (APTR)0                         },
  54.     { NM_ITEM,  "About...",                     "A", 0, 0,      (APTR)MEN_ABOUT                 },
  55.     { NM_ITEM,  "About MUI...",                 0,   0, 0,      (APTR)MEN_ABOUTMUI              },
  56.     { NM_ITEM,  NM_BARLABEL,                    0,   0, 0,      (APTR)0                         },
  57.     { NM_ITEM,  "Quit",                         "Q", 0, 0,      (APTR)MEN_QUIT                  },
  58.     { NM_TITLE, "Settings",                     0,   0, 0,      (APTR)0                         },
  59.     { NM_ITEM,  "MIME Prefs...",                0,   0, 0,      (APTR)MEN_MIMEPREFS             },
  60.     { NM_ITEM,  "MUI...",                       0,   0, 0,      (APTR)MEN_MUIPREFS              },
  61.     { NM_END,   NULL,                           0,   0, 0,      (APTR)0                         }
  62. };
  63.  
  64. struct NewMenu Menu2Data[] = {
  65.     { NM_TITLE, "Edit",                         0,   0, 0,      (APTR)0                         },
  66.     { NM_ITEM,  "Reset to Defaults...",         "D", 0, 0,      (APTR)MEN_RESET                 },
  67.     { NM_ITEM,  "Last Saved",                   "L", 0, 0,      (APTR)MEN_LASTSAVED             },
  68.     { NM_ITEM,  "Restore",                      "R", 0, 0,      (APTR)MEN_RESTORE               },
  69.     { NM_ITEM,  NM_BARLABEL,                    0,   0, 0,      (APTR)0                         },
  70.     { NM_ITEM,  "Import AWeb 3 Prefs...",       0,   0, 0,      (APTR)MEN_IMPORTAWEB            },
  71.     { NM_ITEM,  "Import Voyager 3 Prefs...",    0,   0, 0,      (APTR)MEN_IMPORTVOYAGER         },
  72.     { NM_END,   NULL,                           0,   0, 0,      (APTR)0                         }
  73. };
  74.  
  75. extern struct Hook MenuAboutHook, MenuMIMEPrefsHook, MenuResetPrefsHook, MenuLastSavedPrefsHook;
  76. extern struct Hook MenuRestorePrefsHook, MenuImportAwebPrefsHook, MenuImportVoyagerPrefsHook, Page1InputPopHook;
  77. extern struct Hook Page1OutputPopHook, Page1DescPopHook, Page1DescCheckHook, Page1MaxCheckHook;
  78. extern struct Hook Page1EncodeButtonHook, Page2InputPopHook, Page2OutputPopHook, Page2DecodeButtonHook;
  79. extern struct Hook Page3InputPopHook, Page3DescPopHook, Page3DescCheckHook, Page3MaxCheckHook;
  80. extern struct Hook Page3EncodeButtonHook, Page4InputPopHook, Page4DescPopHook, Page4DescCheckHook;
  81. extern struct Hook Page4MaxCheckHook, Page4EncodeButtonHook, PrefsMIMEListHook, PrefsMIMEUpdateHook;
  82. extern struct Hook PrefsAddButtonHook, PrefsRemoveButtonHook, PrefsCopyButtonHook, PrefsSortButtonHook;
  83. extern struct Hook PrefsSaveButtonHook, PrefsUseButtonHook, PrefsCancelButtonHook;
  84.  
  85. // --------------------------------------------------------------------------------------------------------------
  86.  
  87. // End Of Text
  88.